﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using COM.OA.Entity;
using COM.OA.BLL;

public partial class gxxz_close : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        int id = Int32.Parse(this.Request.Params["id"]);
        files f = filesBLL.Select(id);
        if (f.f_state == 0)
        {
            f.f_state = 1;
        }
        else
        {
            f.f_state = 0;
        }
        filesBLL.Update(f);
        this.Response.Write(string.Format(GetRedirect.REDIRECT,"lb_adminupload.aspx"));
    }
}
